import {StyleSheet, Text, TouchableOpacity, View, ScrollView, Image, TextInput} from 'react-native'
import React, {useEffect, useState} from 'react'
import PageScrollView from "@/components/PageScrollView";
import PageTabBar from "@/components/PageTabBar";
import NoData from "@/components/NoData";
import FcButton from "@/components/FcButton";
import FcModal from '@/components/FcModal';
import useGetStorage from "@/hooks/useGetStorage";
import FcTextInput from "@/components/FcTextInput";
import {router} from "expo-router";
import {useDispatch, useSelector} from "react-redux";
import {set_rowData} from "@/store/reducer/contentManage/contentManageSlice";
import {Flex, Toast} from "@ant-design/react-native";;
import {LinearGradient} from "expo-linear-gradient";
import * as ImagePicker from "expo-image-picker";

import {
  useFeedbackAddMutation,
} from "@/store/api/my/myApi";

type Props = {}

const moduleSelect = (props: Props) => {
  const [userInfo, setUserInfo] = useState<any>({})
  const [module, setModule] = useState('')
  const [description, setDescription] = useState('')
  const [phone, setPhone] = useState('')
  const [imgList, setImgList] = useState<any>([])
  const [feedbackList, setFeedbackList] = useState<any>([])
  const [progressOpen, setProgressOpen] = useState<any>(false)

  const [feedbackAddFun] = useFeedbackAddMutation()

  useEffect(() => {
    
  },[])

  return (
    <PageScrollView
      pageTab={
        <PageTabBar
          style={{marginVertical: 10}}
          title={'模块搜索'}
          right={
            <TouchableOpacity onPress={() => router.navigate(`/search`)}>
              <Text style={{fontFamily: 'FcIconFont', fontSize: 20, color: '#000000', marginRight: 10}}>&#xe641;</Text>
            </TouchableOpacity>
          }
          left={
            <Flex style={{paddingLeft: 16}}>
              <TouchableOpacity onPress={() => router.back()}>
                <Text style={{fontFamily: 'FcIconFont', fontSize: 25, color: '#000', marginRight: 3}}>&#xe659;</Text>
              </TouchableOpacity>

              <TouchableOpacity onPress={() => router.navigate(`/search`)}>
                <Text style={{fontFamily: 'FcIconFont', fontSize: 25, color: '#000', marginRight: 3}}>&#xe61a;</Text>
              </TouchableOpacity>
            </Flex>
          }
        />
      }
    >
      <View>
        
      </View>
    </PageScrollView>
  )
}

export default moduleSelect

const styles = StyleSheet.create({
  
})

